package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IMainActivityModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.resp.AppUpdateEntity;
import com.wgts.wgts.netmodle.resp.UserInfoEntity;
import com.wgts.wgts.netmodle.resp.VipMessageEntity;
import com.wgts.wgts.tools.VipMessageDate;

import java.util.List;

/*
 *
 *
 *   data:2018/9/2615:30
 *
 */public class MainActivityModel implements IMainActivityModel {
     private NetService netService;

    public MainActivityModel(NetService netService, VipMessageDate vipMessageDate) {
        this.netService = netService;
    }

    @Override
    public void vipMessage(HttpResultSubscriber<List<VipMessageEntity>> subscriber) {
        netService.vipMessage(subscriber);
    }

    @Override
    public void userInfo(HttpResultSubscriber<UserInfoEntity> subscriber) {
        netService.userInfo(subscriber);
    }

    @Override
    public void appUpdate(String channel, String version, HttpResultSubscriber<AppUpdateEntity> subscriber) {
        netService.appUpdate(channel, version, subscriber);
    }


}
